18. Quiz: Determine the CRUD Method

Determine the CRUD Method

Let’s think about how we might use CRUD methods in the ToDoList app.

Here’s a list of things we might like the app to do, from displaying to inserting data. For each piece of UI functionality, choose which CRUD functionality (Insert, Query, Update, Delete) will be used.

MainActivity

Display all tasks

SOLUTION: Query

Edit an existing task

SOLUTION: Update

Display only high priority tasks

SOLUTION: Query

Sweep to remove a task

SOLUTION: Delete

AddTaskActiivty

Add a new task with some priority

SOLUTION: Insert